package auctionhaus

class Customer {
    String email
    String password
    Date dateCreated

    static constraints = {
        // make sure email address is in valid format, is unique, and cannot be blank
        email email: true, unique: true, blank: false

        // make sure password is between 6 and 8 characters and is not blank
        password size: 6..8, blank: false

        // make sure date created is not blank
        dateCreated blank: false
    }
}
